package com.neuedu.log.controller;


import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class MyLogController {

//    Logger log = LoggerFactory.getLogger(MyLogController.class);



    /**
     * http://127.0.0.1:8080/doLog
     * * @return
     */
    @RequestMapping("/doLog")
    String doLog(){

        log.trace("trace log ...");
        log.debug("debug log ...");
        log.info("info log ...");
        log.warn("warn log ...");
        log.error("debug log ...");


        return "doLog";
    }


}
